home *** CD-ROM | disk | FTP | other *** search
- Path: abacus.abasoft.co.uk!not-for-mail
- From: dmb@abacus.abasoft.co.uk (David Byrne)
- Newsgroups: comp.lang.c++
- Subject: Re: Arrays of structures
- Date: 15 Apr 1996 14:03:22 +0100
- Organization: Abacus Software Ltd.
- Message-ID: <4ktheq$cvm@abacus.abasoft.co.uk>
- References: <4kbuqo$n6n@lemon.easynet.co.uk>
- NNTP-Posting-Host: abacus.abasoft.co.uk
- X-NNTP-Posting-Host: abacus.demon.co.uk
-
- In article <4kbuqo$n6n@lemon.easynet.co.uk>, dgo <dgo@easynet.co.uk> wrote:
-
- example test[3] =
- {
- { 3, 5 },
- { 4, 6 },
- { 5, 7 }, <--- drop the comma, you've only allocated space for 3 elements
- };
-
- Regards,
-
- David
- --
- David Byrne, Abacus Software, London, UK Tel: +44 (0)171 603 9877
- Email: dmb@abacus.demon.co.uk Fax: +44 (0)171 603 6844
- Here's a koan: If you have ice-cream I will give you some. If you have none,
- I will take it away from you. (it's an ice-cream koan).
-